import { getToken, setToken } from '@/utils/token.js'

const state = {
  Token: getToken() || ''
}
const getters = {
  getStateToken (state) {
    return state.Token
  }
}
const mutations = {
  setStateToken (state, value) {
    state.Token = value
    setToken(value)
  }
}
const actions = {}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
